package com.bw.service;

import com.bw.bean.Shang;
import com.bw.mapper.ShangMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    ShangMapper shangMapper;

    @Override
    public Shang get1() {
        return shangMapper.get1();
    }

    @Override
    public Shang get2(String name1) {
        return shangMapper.get2(name1);
    }

    @Override
    public Shang get3(double money1) {
        return shangMapper.get3(money1);
    }

    @Override
    public Shang get4(String date1, String date2) {
        return shangMapper.get4(date1,date2);
    }

    @Override
    public int myadd(Shang shang) {
        return shangMapper.myadd(shang);
    }

    @Override
    public int del(int id) {
        return shangMapper.del(id);
    }

    @Override
    public int myup(double money1, int id1) {
        return shangMapper.myup(money1,id1);
    }

}
